<?php
namespace app\common\validate;

use app\common\validate\Base;
class Login extends Base
{

    protected $rule = [
        'loginname|登录名' => 'require|checkLoginName:loginname',
        'username|用户名' => 'require',
        'password|密码' => 'require|min:6',
        'captcha|验证码'=>'require|captcha'
    ];

    protected $message = [];

    protected $scene = [
    	'home_login' => ['loginname','password','captcha'],
    	'manage_login' => ['username','password']
    ];
}